<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习</title>
    <script type="text/javascript" src="../js/jquery-3.4.1.min.js"></script>
    <script>
        $(function(){
            $("img").click(function(){
                $(this).animate({"left":"1200px"},500)
                    .animate({"left":"400px","top":"800px"},500)
                    .animate({"left":"600px","top":"0px"},500)
                    .animate({"left":"800px","top":"800px"},500)
                    .animate({"left":"0px","top":"200px"},500);
                $(this).click();
            });
        })
    </script>
</head>
<body>
<img src="../images/heihei.gif" alt="图片加载失败" style="position: relative;left: 0px;top: 200px;">
</body>
</html>